home *** CD-ROM | disk | FTP | other *** search
- /**************************************************
- * *
- * Define some functions not already available *
- * in the MPW environment. *
- * Courtesty of Kris L. Jorgensen *
- * *
- **************************************************/
- #include "stdio.h"
-
-
- #ifdef powerc
-
- int fileno( FILE *p )
- {
- return (int)(p->_file);
- }
-
-
- int isatty( int fn )
- {
- if ( fn == fileno(stdin) || fn == fileno(stdout) || fn == fileno(stderr) )
- return 1;
-
- else
- return 0;
- }
-
- #endif
-
- /*
- Provide FORTRAN glue code for SpinCursor
- And add call throughs to SpinCursor for the functions
- used by Symantec, THINK, and CodeWarrior.
-
- Note: under MPW, the parameter passed to DoMultiTask()
- is interpreted as the counter increment, *NOT* as
- the number of ticks to sleep!!!
- */
-
- extern pascal void SpinCursor( short );
-
- int spincursor_( long *count )
- {
- SpinCursor( (short) *count );
- }
-
- void DoMultiTask( long count )
- {
- SpinCursor( (short) count );
- }
-
- int domultitask_( long *count )
- {
- SpinCursor( (short) *count );
- }
-
-
-